/*************************************************************
 * File: ApplicationException.java
 * Copyright (c) 2012
 * Author: Shaobin.Software@gmail.com Shaobin_Software@163.com 
 * Date: Jan 10, 2013
 * Description: 
 ************************************************************/

package snow.core.exception;

/**
 * 程序异常
 * 
 * @author Shaobin.Software@gmail.com Shaobin_Software@163.com
 * @version 1.0
 */
public class ApplicationException extends RuntimeException {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1997964036572332366L;
	
	private String code;
	private String message;
	
	public ApplicationException() {
	}
	
	public ApplicationException(Throwable cause) {
		super(cause);
	}

	public ApplicationException(String code, String message) {
		setCode(code);
		setMessage(message);
	}

	public String getCode() {
		return this.code;
	}

	public String getMessage() {
		return this.message;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public void setMessage(String message) {
		this.message = message;
	}

}
